
clear 

import delimited "district.csv", numericcols(1, 2) 

set seed 63116

putexcel set "circuit_wild_ci.xlsx", sheet("A") replace

reg libcon mean_panel
boottest mean_panel, cl(circuit) weight(webb) reps(99999) nograph
putexcel A1 = matrix(r(CI))

areg libcon  mean_panel, a(judge_fe)
boottest mean_panel, cl(circuit) weight(webb) reps(99999) nograph
putexcel A2 = matrix(r(CI))

areg libcon  mean_panel i.year, a(judge_fe)
boottest mean_panel, cl(circuit) weight(webb) reps(99999) nograph
putexcel A3 = matrix(r(CI))

areg libcon  mean_panel i.year i.casetype, a(judge_fe)
boottest mean_panel, cl(circuit) weight(webb) reps(99999) nograph
putexcel A4 = matrix(r(CI))

areg libcon  mean_panel i.year i.casetype, a(judge_category)
boottest mean_panel, cl(circuit) weight(webb) reps(99999) nograph
putexcel A5 = matrix(r(CI))

putexcel set "state_wild_ci.xlsx", sheet("A") replace

reg libcon mean_panel
boottest mean_panel, cl(state) weight(webb) reps(99999) nograph
putexcel A1 = matrix(r(CI))

areg libcon  mean_panel, a(judge_fe)
boottest mean_panel, cl(state) weight(webb) reps(99999) nograph
putexcel A2 = matrix(r(CI))

areg libcon  mean_panel i.year, a(judge_fe)
boottest mean_panel, cl(state) weight(webb) reps(99999) nograph
putexcel A3 = matrix(r(CI))

areg libcon  mean_panel i.year i.casetype, a(judge_fe)
boottest mean_panel, cl(state) weight(webb) reps(99999) nograph
putexcel A4 = matrix(r(CI))

areg libcon  mean_panel i.year i.casetype, a(judge_category)
boottest mean_panel, cl(state) weight(webb) reps(99999) nograph
putexcel A5 = matrix(r(CI))

putexcel set "district_wild_ci.xlsx", sheet("A") replace

reg libcon mean_panel
boottest mean_panel, cl(statdist) weight(webb) reps(99999) nograph
putexcel A1 = matrix(r(CI))

areg libcon  mean_panel, a(judge_fe)
boottest mean_panel, cl(statdist) weight(webb) reps(99999) nograph
putexcel A2 = matrix(r(CI))

areg libcon  mean_panel i.year, a(judge_fe)
boottest mean_panel, cl(statdist) weight(webb) reps(99999) nograph
putexcel A3 = matrix(r(CI))

areg libcon  mean_panel i.year i.casetype, a(judge_fe)
boottest mean_panel, cl(statdist) weight(webb) reps(99999) nograph
putexcel A4 = matrix(r(CI))

areg libcon  mean_panel i.year i.casetype, a(judge_category)
boottest mean_panel, cl(statdist) weight(webb) reps(99999) nograph
putexcel A5 = matrix(r(CI))